import 'package:fish_redux/fish_redux.dart';

enum PlanListViewAction {
  action,
  onTapIndex,
  onSubmit,
  onLoad,
}

class PlanListViewActionCreator {
  static Action onAction() {
    return const Action(PlanListViewAction.action);
  }

  static Action onTapIndex(index) {
    return Action(PlanListViewAction.onTapIndex, payload: index);
  }

  static Action onSubmit() {
    return const Action(PlanListViewAction.onSubmit);
  }

  static Action onLoad() {
    return const Action(PlanListViewAction.onLoad);
  }
}
